package cn.tanghom.app.oa.repository;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import cn.tanghom.app.oa.model.Enterprise;
import cn.tanghom.app.oa.model.Position;
import cn.tanghom.app.oa.model.Talent;

@Repository
public interface EnterpriseRepository extends MongoRepository<Enterprise, Long> {

	List<Enterprise> findByName(String name);
	
	List<Enterprise> findByShortName(String name);
	
	List<Enterprise> findByDisplayName(String name);
}